package com.bluestarenergy.provisioning.engine.batch.item.processor;

import org.springframework.batch.item.ItemProcessor;

import com.bluestarenergy.provisioning.engine.domain.CustomerCredit;

public class CustomerBusinessProcessor implements ItemProcessor<CustomerCredit, CustomerCredit>{

	public CustomerCredit process(CustomerCredit item) throws Exception {

		if("customer3".equals(item.getName())){
			item.setName("Andy Neira");
		}
		System.out.println("PROCESSOR == item id :: " + item.getId() + " Name :: " + item.getName() );
		return item;
	}

}
